package io.easyspring.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * 主启动类
 * Annotation @SpringBootApplication springboot 主启动类注解
 * Annotation @EnableSwagger2 开启 swagger 配置
 * Annotation @ComponentScan 扫描的包
 * Annotation @EnableTransactionManagement 开启事物
 *
 * @author summer
 * @version 2.0.0-RELEASE
 * DateTime 2019-05-14 15:21
 */
@SpringBootApplication
@ComponentScan(basePackages = {
        "io.easyspring.demo",
        "io.easyspring.framework.base",
        "io.easyspring.framework.common",
})
@EnableSwagger2
@EnableTransactionManagement
public class DemoApplication {

    /**
     * demo 项目的主启动方法
     *
     * @param args 启动参数
     * Author summer
     * Version 2.0.0-RELEASE
     * DateTime 2019-10-15 13:43
     */
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
